package mapper;

import org.apache.ibatis.annotations.Param;
import pojo.AppCategory;
import pojo.AppInfo;

import java.util.List;
import java.util.Map;

/**
 * Created by dell on 2019/1/28.
 */
public interface infomapper {
    //全查加分页
    List<AppInfo> infoAll(Map<String ,Object> appinfomap);
// 总页数
     int Cont();
    //按照名称查询

    //删除
    int delect(@Param("idd") int idd);
//下架
    int update (@Param("id") int id);

    //加载一级分类
    List<AppCategory> categoryLevel1 ();
    //根据一级加载二级
    List<AppCategory> categoryLevel2(@Param("categoryLevel1") int categoryLevel1);
    //根据二级加载三级
    List<AppCategory> categoryLevel3(@Param("categoryLevel2") int categoryLevel2);
}
